package com.ricchieri.dao;

import java.util.List;

import org.hibernate.Criteria;

import com.ricchieri.dao.interf.IScheduleCharterExpenseDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.ScheduleCharterExpense;

public class ScheduleCharterExpenseDao extends GenericDao implements IScheduleCharterExpenseDao {
	private static final long serialVersionUID = 651011627528925809L;

	@Override
	@SuppressWarnings("unchecked")
	public List<ScheduleCharterExpense> getAllExpense(BasicFilter filter) {
		Criteria criteria = criteriaAllScheduleCharterExpense(filter);
		
		return criteria.list();
	}
	
	private Criteria criteriaAllScheduleCharterExpense(BasicFilter filter) {
		return super.criteriaAllBasic(filter, ScheduleCharterExpense.class);
	}	
	
	@Override
	protected String getTableName() {
		return "scheduleCharterExpense";
	}
}
